﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <title>用户管理 </title>
    <link href="../static/css/admin.css?v=6" rel="stylesheet" />
    <script src="../static/js/boot.js?v=2"></script>
    <script src="../static/js/admin.js?v=2"></script>
    <script>
        var apiUrl = "/api/Friendlink/";
        var keyValue = $.request("keyValue");
        var IsEdit = $.request("IsEdit");
        var selectValue = 0;
        var kty = 1;
        $(function () {
            initControl();
            console.log(keyValue);
            if (!!keyValue) {
                $.ajax({
                    url: apiUrl + "GetModel?keyValue=" + keyValue,
                    data: { keyValue: keyValue },
                    dataType: "json",
                    async: false,
                    beforeSend: function (jqXHR) {
                        jqXHR.setRequestHeader("Authorization", 'Bearer ' + window.LS.get("hdjtoken"));
                    },
                    success: function (ret) {
                        $("#form1").formSerialize(ret.data);
                    }
                });
            }
            if (IsEdit == "0") {
                //查看
                $("#btn_finish").attr("disabled", "disabled");
            }
        })
        function initControl() {

            $('#AddTime').val(new Date().Format("yyyy-MM-ddThh:mm:ss"));
        }

        function submitForm() {
            if (!$('#form1').formValid()) {
                return false;
            }
            var aurl = apiUrl + "SubmitForm";
            var paramform = $("#form1").formSerialize();
            //paramform["CurrentType"] = $("input[name='rDate']:checked").val();

            $.submitForm({
                url: aurl,
                param: paramform,
                paramType: true,
                success: function () {
                    $.currentWindow().$("#gridList").resetSelection();
                    $.currentWindow().$("#gridList").trigger("reloadGrid");
                }
            })
        }
    </script>
</head>
<body style="margin:0px;padding:0px;overflow:hidden;">
    <form id="form1">
        <div style="margin-top: 10px; margin-left: 10px; margin-right: 10px;">
            <div style="padding-top: 20px; margin-right: 30px;">
                <input type="hidden" id="ID" name="ID" value="" />
                <input type="hidden" id="Password" name="Password" value="" />
                <table class="form">
                    <tr>
                        <th class="formTitle">用户登录帐号</th>
                        <td class="formValue">
                            <input id="Account" name="Account" type="text" class="form-control " autocomplete="off" />
                        </td>
                        <th class="formTitle">用户姓名</th>
                        <td class="formValue">
                            <input id="Name" name="Name" type="text" class="form-control " autocomplete="off" />
                        </td>
                    </tr>
                    <tr>
                        <th class="formTitle">证件类型</th>
                        <td class="formValue">
                            <div class="input-group">
                                <input id="IdcardType" name="IdcardType" title="双击清空" value="未知" ondblclick="$('#IdcardType').val('');" readonly="readonly" type="text" class="form-control required" placeholder="请选择" />
                                <div class="input-group-btn">
                                    <button type="button" class="btn btn-info dropdown-toggle" data-bs-toggle="dropdown" data-toggle="dropdown">
                                        <span class="caret"></span>
                                    </button>
                                    <ul class="dropdown-menu pull-right" style="max-height:200px;overflow:auto">
                                        <li><a class="dropdown-item" onclick="selectOption('IdcardType', this);">居民身份证</a></li>
                                        <li><a class="dropdown-item" onclick="selectOption('IdcardType',this);">士官证</a></li>
                                        <li><a class="dropdown-item" onclick="selectOption('IdcardType',this);">驾驶证</a></li>
                                        <li><a class="dropdown-item" onclick="selectOption('IdcardType',this);">护照</a></li>
                                        <li><a class="dropdown-item" onclick="selectOption('IdcardType',this);">港澳通行证</a></li>
                                        <li><a class="dropdown-item" onclick="selectOption('IdcardType',this);">警官证</a></li>
                                        <li><a class="dropdown-item" onclick="selectOption('IdcardType',this);">执行公务证</a></li>
                                    </ul>
                                </div>
                            </div>
                        </td>  
                        <th class="formTitle">证件号码</th>
                        <td class="formValue">
                            <input id="Idcard" name="Idcard" type="text" class="form-control " autocomplete="off" />
                        </td>
                    </tr>
                    <tr>
                        <th class="formTitle">性别</th>
                        <td class="formValue">
                            <div class="input-group">
                                <input id="Sex" name="Sex" title="双击清空" value="未知" ondblclick="$('#Sex').val('');" readonly="readonly" type="text" class="form-control required" placeholder="请选择" />
                                <div class="input-group-btn">
                                    <button type="button" class="btn btn-info dropdown-toggle" data-bs-toggle="dropdown" data-toggle="dropdown">
                                        <span class="caret"></span>
                                    </button>
                                    <ul class="dropdown-menu pull-right" style="max-height:200px;overflow:auto">
                                        <li><a class="dropdown-item" onclick="selectOption('Sex', this);">男</a></li>
                                        <li><a class="dropdown-item" onclick="selectOption('Sex',this);">女</a></li>
                                    </ul>
                                </div>
                            </div>

                        </td>
                        <th class="formTitle">用户状态</th>
                        <td class="formValue">
                            <div class="input-group">
                                <input id="Status" name="Status" title="双击清空" value="未知" ondblclick="$('#Status').val('');" readonly="readonly" type="text" class="form-control required" placeholder="请选择" />
                                <div class="input-group-btn">
                                    <button type="button" class="btn btn-info dropdown-toggle" data-bs-toggle="dropdown" data-toggle="dropdown">
                                        <span class="caret"></span>
                                    </button>
                                    <ul class="dropdown-menu pull-right" style="max-height:200px;overflow:auto">
                                        <li><a class="dropdown-item" onclick="selectOption('Status', this);">是</a></li>
                                        <li><a class="dropdown-item" onclick="selectOption('Status',this);">否</a></li>
                                    </ul>
                                </div>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <th class="formTitle">手机</th>
                        <td class="formValue">
                            <input id="Mobile" name="Mobile" type="text" class="form-control " autocomplete="off" />
                        </td>
                        <th class="formTitle">电子邮箱</th>
                        <td class="formValue">
                            <input id="Email" name="Email" type="text" class="form-control " autocomplete="off" />
                        </td>
                    </tr>
                    <tr>
                        <th class="formTitle">国籍/地区</th>
                        <td class="formValue">
                            <input id="Nationality" name="Nationality" type="text" class="form-control " autocomplete="off" />
                        </td>
                        <th class="formTitle">宗教信仰</th>
                        <td class="formValue">
                            <div class="input-group">
                                <input id="Faith" name="Faith" title="双击清空" value="未知" ondblclick="$('#Faith').val('');" readonly="readonly" type="text" class="form-control required" placeholder="请选择" />
                                <div class="input-group-btn">
                                    <button type="button" class="btn btn-info dropdown-toggle" data-bs-toggle="dropdown" data-toggle="dropdown">
                                        <span class="caret"></span>
                                    </button>
                                    <ul class="dropdown-menu pull-right" style="max-height:200px;overflow:auto">
                                        <li><a class="dropdown-item" onclick="selectOption('Faith', this);">基督宗教</a></li>
                                        <li><a class="dropdown-item" onclick="selectOption('Faith',this);">伊斯兰教</a></li>
                                        <li><a class="dropdown-item" onclick="selectOption('Faith',this);">佛教</a></li>
                                    </ul>
                                </div>
                            </div>
                        </td>  
                    </tr>
                    <tr>
                        <th class="formTitle">邮寄地址</th>
                        <td class="formValue">
                            <input id="Address" name="Address" type="text" class="form-control " autocomplete="off" />
                        </td>
                        <th class="formTitle">邮编</th>
                        <td class="formValue">
                            <input id="Zipcode" name="Zipcode" type="text" class="form-control " autocomplete="off" />
                        </td>
                    </tr>
                    <tr>
                        <th class="formTitle">生肖</th>
                        <td class="formValue">
                            <div class="input-group">
                                <input id="Zodiac" name="Zodiac" title="双击清空" value="未知" ondblclick="$('#Zodiac').val('');" readonly="readonly" type="text" class="form-control required" placeholder="请选择" />
                                <div class="input-group-btn">
                                    <button type="button" class="btn btn-info dropdown-toggle" data-bs-toggle="dropdown" data-toggle="dropdown">
                                        <span class="caret"></span>
                                    </button>
                                    <ul class="dropdown-menu pull-right" style="max-height:200px;overflow:auto">
                                        <li><a class="dropdown-item" onclick="selectOption('Zodiac', this);">牛</a></li>
                                        <li><a class="dropdown-item" onclick="selectOption('Zodiac',this);">虎</a></li>
                                        <li><a class="dropdown-item" onclick="selectOption('Zodiac',this);">兔</a></li>
                                        <li><a class="dropdown-item" onclick="selectOption('Zodiac',this);">龙</a></li>
                                        <li><a class="dropdown-item" onclick="selectOption('Zodiac',this);">蛇</a></li>
                                        <li><a class="dropdown-item" onclick="selectOption('Zodiac',this);">马</a></li>
                                        <li><a class="dropdown-item" onclick="selectOption('Zodiac',this);">羊</a></li>
                                        <li><a class="dropdown-item" onclick="selectOption('Zodiac',this);">猴</a></li>
                                        <li><a class="dropdown-item" onclick="selectOption('Zodiac',this);">狗</a></li>
                                        <li><a class="dropdown-item" onclick="selectOption('Zodiac',this);">猪</a></li>
                                    </ul>
                                </div>   
                            </div>
                        </td>
                        <th class="formTitle">星座</th>
                        <td class="formValue">
                            <div class="input-group">
                                <input id="Constellation" name="Constellation" title="双击清空" value="未知" ondblclick="$('#Constellation').val('');" readonly="readonly" type="text" class="form-control required" placeholder="请选择" />
                                <div class="input-group-btn">
                                    <button type="button" class="btn btn-info dropdown-toggle" data-bs-toggle="dropdown" data-toggle="dropdown">
                                        <span class="caret"></span>
                                    </button>
                                    <ul class="dropdown-menu pull-right" style="max-height:200px;overflow:auto">
                                        <li><a class="dropdown-item" onclick="selectOption('Constellation', this);">白羊座</a></li>
                                        <li><a class="dropdown-item" onclick="selectOption('Constellation',this);">金牛座</a></li>
                                        <li><a class="dropdown-item" onclick="selectOption('Constellation',this);">双子座</a></li>
                                        <li><a class="dropdown-item" onclick="selectOption('Constellation',this);">巨蟹座</a></li>
                                        <li><a class="dropdown-item" onclick="selectOption('Constellation',this);">狮子座</a></li>
                                        <li><a class="dropdown-item" onclick="selectOption('Constellation',this);">处女座</a></li>
                                        <li><a class="dropdown-item" onclick="selectOption('Constellation',this);">天秤座</a></li>
                                        <li><a class="dropdown-item" onclick="selectOption('Constellation',this);">天蝎座</a></li>
                                        <li><a class="dropdown-item" onclick="selectOption('Constellation',this);">射手座</a></li>
                                        <li><a class="dropdown-item" onclick="selectOption('Constellation',this);">摩羯座</a></li>
                                        <li><a class="dropdown-item" onclick="selectOption('Constellation',this);">水瓶座</a></li>
                                        <li><a class="dropdown-item" onclick="selectOption('Constellation',this);">双鱼座</a></li>
                                    </ul>
                                </div>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <th class="formTitle">健康状况</th>
                        <td class="formValue">
                            <input id="Health" name="Health" type="text" class="form-control " autocomplete="off" />
                        </td>
                        <th class="formTitle">出生年月日</th>
                        <td class="formValue">
                            <input id="BirthDate" name="BirthDate" type="text" class="form-control " autocomplete="off" />
                        </td>
                    </tr>
                    <tr>
                        <th class="formTitle">婚姻状态</th>
                        <td class="formValue">
                            <div class="input-group">
                                <input id="Marry" name="Marry" title="双击清空" value="未知" ondblclick="$('#Marry').val('');" readonly="readonly" type="text" class="form-control required" placeholder="请选择" />
                                <div class="input-group-btn">
                                    <button type="button" class="btn btn-info dropdown-toggle" data-bs-toggle="dropdown" data-toggle="dropdown">
                                        <span class="caret"></span>
                                    </button>
                                    <ul class="dropdown-menu pull-right" style="max-height:200px;overflow:auto">
                                        <li><a class="dropdown-item" onclick="selectOption('Marry', this);">已婚</a></li>
                                        <li><a class="dropdown-item" onclick="selectOption('Marry',this);">未婚</a></li>
                                    </ul>
                                </div>
                            </div>
                        </td>
                        <th class="formTitle">政治面貌</th>
                        <td class="formValue">
                            <div class="input-group">
                                <input id="PoliticalID" name="PoliticalID" title="双击清空" value="未知" ondblclick="$('#PoliticalID').val('');" readonly="readonly" type="text" class="form-control required" placeholder="请选择" />
                                <div class="input-group-btn">
                                    <button type="button" class="btn btn-info dropdown-toggle" data-bs-toggle="dropdown" data-toggle="dropdown">
                                        <span class="caret"></span>
                                    </button>
                                    <ul class="dropdown-menu pull-right" style="max-height:200px;overflow:auto">
                                        <li><a class="dropdown-item" onclick="selectOption('PoliticalID', this);">中共党员</a></li>
                                        <li><a class="dropdown-item" onclick="selectOption('PoliticalID',this);">中共预备党员</a></li>
                                        <li><a class="dropdown-item" onclick="selectOption('PoliticalID',this);">共青团员</a></li>
                                        <li><a class="dropdown-item" onclick="selectOption('PoliticalID',this);">民革党员</a></li>
                                        <li><a class="dropdown-item" onclick="selectOption('PoliticalID',this);">民盟盟员</a></li>
                                        <li><a class="dropdown-item" onclick="selectOption('PoliticalID',this);">民建会员</a></li>
                                        <li><a class="dropdown-item" onclick="selectOption('PoliticalID',this);">民进会员</a></li>
                                        <li><a class="dropdown-item" onclick="selectOption('PoliticalID',this);">农工党党员</a></li>
                                        <li><a class="dropdown-item" onclick="selectOption('PoliticalID',this);">致公党党员</a></li>
                                        <li><a class="dropdown-item" onclick="selectOption('PoliticalID',this);">九三学社社员</a></li>
                                        <li><a class="dropdown-item" onclick="selectOption('PoliticalID',this);">台盟盟员</a></li>
                                        <li><a class="dropdown-item" onclick="selectOption('PoliticalID',this);">无党派人士</a></li>
                                        <li><a class="dropdown-item" onclick="selectOption('PoliticalID',this);">群众</a></li>
                                    </ul>
                                </div>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <th class="formTitle">名族</th>
                        <td class="formValue">
                            <input id="NationalID" name="NationalID" type="text" class="form-control " autocomplete="off" />
                        </td>
                        <th class="formTitle">籍贯</th>
                        <td class="formValue">
                            <input id="NativePlace" name="NativePlace" type="text" class="form-control " autocomplete="off" />
                        </td>
                    </tr>


                </table>
            </div>
        </div>
    </form>
</body>
</html>